package com.itheima;

/**
 * 2025/5/15 8:26
 */
public class TestC {
    public static void main(String[] args) {
        C c1 = new C() {
            @Override
            public String show(String name) {
                System.out.println("show方法");
                return name;
            }
        };

//        C c2 = name -> name;
        C C2 = name-> {
                System.out.println("show方法");
                return name;
            };
    }
}
